<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Ad_User.aspx.cs" Inherits="Admin_Ad_User" %>
<%@ Register Src="Include/Ad_footer.ascx" TagName="Ad_footer" TagPrefix="uc3" %>

<%@ Register Src="Include/Ad_left.ascx" TagName="Ad_left" TagPrefix="uc2" %>

<%@ Register Src="Include/Ad_header.ascx" TagName="Ad_header" TagPrefix="uc1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    
    <title>Add Admin User</title>
    <link href="include\styles.css" rel="stylesheet" />
     <script src="..\JScript\gen_validatorv2.js"></script>     
</head>
<body>
    <form id="form1" runat="server">
    <div>
       
       <table width="100%"  border="0" cellspacing="0" cellpadding="0">

	<!-- Masthead starts from here-->
	
	<uc1:Ad_header ID="Ad_header1" runat="server" />
	
	<!-- Masthead ends here-->
	
  <tr>
    <td></td>
    <td><table width="716" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="150" valign="top">
		
		<!-- Left panel starts from here-->
		
		<uc2:Ad_left ID="Ad_left1" runat="server" />
		
		<!-- Left panel ends from here-->
		</td>
        <td width="15" valign="top"><img src="../images/spacer.gif" width="15" height="1" /></td>
        <td width="551" valign="top"><table width="100%"  border="0" cellpadding="0" cellspacing="0" class="tblborder">
          <tr>
            <td width="2%" height="35"></td>
            <td width="96%" class="normalblack_12" align="center" ><b> <asp:Label ID="lblMain" runat="server">Add New User</asp:Label> </b></td>
            <td width="2%"></td>
          </tr>
          <tr>
            <td height="15"></td>
            <td></td>
            <td></td>
          </tr>
          <tr>
            <td height="200"></td>
            <td valign="top" class="normalblack_12" align="center" > 
                
               
        <asp:Label ID="lblMessage" runat="server" ForeColor="Red" Visible="False">Label</asp:Label>
       
        <table id="Table1" border="0" cellpadding="1" cellspacing="1" class="normalgrey_12"
            style="width: 385px; height: 167px" width="385">
            <tr>
                <td align="right" class="normalgrey_12">
                    User name</td>
                <td>
                    <asp:TextBox ID="txtUserName" runat="server" MaxLength="35" Width="156px"></asp:TextBox>
                    <span style="vertical-align: top; color: red">*</span></td>
            </tr>
            <tr>
                <td align="right">
                    Password</td>
                <td>
                    <asp:TextBox ID="txtPassword" runat="server" MaxLength="35" Width="156px"></asp:TextBox>
                    <span style="vertical-align: top; color: red">*</span></td>
            </tr>
            <tr>
                <td align="right">
                    ReType Password</td>
                <td>
                    <asp:TextBox ID="txtConPassword" runat="server" MaxLength="35" Width="156px"></asp:TextBox>
                    <span style="vertical-align: top; color: red">*</span></td>
            </tr>
            <tr style="color: #000000">
                <td align="right" style="height: 26px" class="normalgrey_12">
                    First Name</td>
                <td style="height: 26px">
                    <asp:TextBox ID="txtFirstName" runat="server" MaxLength="35" Width="156px"></asp:TextBox>
                    <span style="vertical-align: top; color: red">*</span></td>
            </tr>
            <tr>
                <td align="right">
                    Last Name</td>
                <td>
                    <asp:TextBox ID="txtLastName" runat="server" MaxLength="35" Width="156px"></asp:TextBox>
                    <span style="vertical-align: top; color: red">*</span></td>
            </tr>
            <tr>
                <td align="right">
                    </td>
                <td>
                    </td>
            </tr>
            <tr>
                <td align="center" colspan="2">
                    <asp:Button ID="Button1" runat="server" Text="Add User" OnClick="Button1_Click" /><asp:TextBox ID="uid" runat="server"
                        Visible="False" Width="24px"></asp:TextBox></td>
            </tr>
        </table>

            
            </td>
            <td></td>
          </tr>
          <tr>
            <td height="20"></td>
            <td></td>
            <td></td>
          </tr>
        </table></td>
      </tr>
    </table></td>
    <td></td>
  </tr>
  <tr>
    <td colspan="3" style="height: 30px"></td>
  </tr>
  <tr>
    <td height="1" bgcolor="#CCCCCC"><img src="../images/spacer.gif" width="1" height="1" alt="" /></td>
    <td bgcolor="#CCCCCC"><img src="../images/spacer.gif" width="1" height="1" alt="" /></td>
    <td bgcolor="#CCCCCC"><img src="../images/spacer.gif" width="1" height="1" alt="" /></td>
  </tr>
  <tr>
    <td height="20" colspan="3"></td>
  </tr>
  
	<!-- Bottom starts from here-->
	
    <uc3:Ad_footer ID="Ad_footer1" runat="server" />
	
	<!-- Bottom ends here-->
	
</table>
       
       
       
            
    </div>
    </form>
     <script>
		//You should create the validator only after the definition of the HTML form
         var frmvalidator  = new Validator("form1","Button1");
	     
	    frmvalidator.addValidation("txtFirstName","req","Please Enter First Name.");	
	    frmvalidator.addValidation("txtLastName","req","Please Enter Last Name.");	    
	    frmvalidator.addValidation("txtUserName","req","Please Enter User Name.");		    
	    frmvalidator.addValidation("txtPassword","req","Please Enter password.");	
	    frmvalidator.addValidation("txtConPassword","req","Please Enter confirm password.");	
	    frmvalidator.addValidation("txtPassword","compare","txtConPassword|Passwords not matched.");
	  
	</script>
</body>
</html>
